package com.example.jdai.jdai.ui;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.jdai.jdai.MyApplication;
import com.example.jdai.jdai.R;
import com.example.jdai.jdai.util.DataAll;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * A simple {@link Fragment} subclass.
 * Activities that contain this fragment must implement the
 * create an instance of this fragment.
 */
public class MyFragment extends Fragment {

    @BindView(R.id.tv_info)
    MyTip tvInfo;
    @BindView(R.id.tv_zima)
    MyTip tvZima;
    @BindView(R.id.tv_phone)
    MyTip tvPhone;
    @BindView(R.id.tv_zfb)
    MyTip tvZfb;
    @BindView(R.id.tv_jd)
    MyTip tvJd;
    @BindView(R.id.tv_zx)
    MyTip tvZx;

    public MyFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_my, container, false);
        ButterKnife.bind(this, view);
        return view;
    }
    void initData(){
//        tvInfo.setZhuangtai(DataAll.dataLnfo.dataCheck() ? 1 : 0);
//        tvConnect.setZhuangtai(DataAll.dataConnect.dataCheck() ? 1 : 0);
//        tvPhone.setZhuangtai(DataAll.dataPhone.dataCheck() ? 1 : 0);
//        tvZima.setZhuangtai(MyApplication.dataAll.data.get(DataAll.ZIMA_STATUS) == "" ? 0 : 1);
//        tvZx.setZhuangtai(DataAll.dataZx.dataCheck() ? 1 : 0);
//        tvZfb.setZhuangtai(DataAll.dataZfb.dataCheck() ? 1 : 0);
//        tvJd.setZhuangtai(DataAll.dataJd.dataCheck() ? 1 : 0);
    }


}
